package dailearn.consumer.client;

import dailearn.consumer.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 *
 * @author daify
 * @date 2019-07-09 16:34
 **/
@Service
@FeignClient(name = "base-producer-contract")
public interface ProducerClient {

    @RequestMapping(value = "getUser",method = RequestMethod.GET) 
    List<User> findAllUser();
    
}
